import { useUserStore } from '@/stores/user'

export const usePermission = () => {
  const userStore = useUserStore()

  const hasPermission = (permission: string): boolean => {
    return userStore.permissions.includes(permission)
  }

  return {
    hasPermission
  }
} 